package qqcommon;

import java.io.Serializable;

/**
 * @author 王艺锡
 * @version 1.0
 *Message类用于服务端回复消息
 */
public class Message implements Serializable {
    private static final long serializableUID = 1L;//提高兼容性
    private String sender;//发送者
    private String receiver;//接收者
    private String content;//内容
    private String sendTime;//时间
    private String mesType;//消息类型

    //添加关于文件传输所需的属性
    private String srcPath;//文件来源
    private String destPath;//文件目的地
    private byte fileBytes[];
    private int fileLen = 0;

    public String getSrcPath() {
        return srcPath;
    }

    public void setSrcPath(String srcPath) {
        this.srcPath = srcPath;
    }

    public String getDestPath() {
        return destPath;
    }

    public void setDestPath(String destPath) {
        this.destPath = destPath;
    }

    public byte[] getFileBytes() {
        return fileBytes;
    }

    public void setFileBytes(byte[] fileBytes) {
        this.fileBytes = fileBytes;
    }

    public int getFileLen() {
        return fileLen;
    }

    public void setFileLen(int fileLen) {
        this.fileLen = fileLen;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getMesType() {
        return mesType;
    }

    public void setMesType(String mesType) {
        this.mesType = mesType;
    }
}
